package com.qiangesoft.blog.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qiangesoft.blog.core.entity.BlogFriendChain;
import com.qiangesoft.blog.system.pojo.vo.BlogFriendChainVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 友情链接 Mapper 接口
 * </p>
 *
 * @author qiange
 * @since 2023-06-05
 */
public interface BlogFriendChainMapper extends BaseMapper<BlogFriendChain> {

    Integer getMaxSort();

    void top(@Param("id") Long id, @Param("sort") int sort);

    List<BlogFriendChainVO> selectLinkList(@Param("status") Integer status);
}
